<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>{$rs.title}</title>

    <!-- ================= Favicon ================== -->
    <!-- Standard -->
    <link rel="shortcut icon" href="http://placehold.it/64.png/000/fff">
    <!-- Retina iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="144x144" href="http://placehold.it/144.png/000/fff">
    <!-- Retina iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="114x114" href="http://placehold.it/114.png/000/fff">
    <!-- Standard iPad Touch Icon-->
    <link rel="apple-touch-icon" sizes="72x72" href="http://placehold.it/72.png/000/fff">
    <!-- Standard iPhone Touch Icon-->
    <link rel="apple-touch-icon" sizes="57x57" href="http://placehold.it/57.png/000/fff">

<!--    &lt;!&ndash; Styles &ndash;&gt;
    <link href="__ADMIN_CSS__/lib/rangSlider/ion.rangeSlider.css" rel="stylesheet">  &lt;!&ndash;Themes Jquery Bar Rating&ndash;&gt;
    <link href="__ADMIN_CSS__/lib/rangSlider/ion.rangeSlider.skinFlat.css" rel="stylesheet">  &lt;!&ndash;Themes Jquery Bar Rating&ndash;&gt;
    <link href="__ADMIN_OTHER__/fontAwesome/css/fontawesome-all.min.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/lib/themify-icons.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/lib/mmc-chat.css" rel="stylesheet" />
    <link href="__ADMIN_CSS__/lib/sidebar.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/lib/bootstrap.min.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/lib/nixon.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/style.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/uploads/bootstrap.min.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/uploads/bootstrap-fileinput.css" rel="stylesheet">-->


    <!-- Styles -->
    <link href="__ADMIN_CSS__/lib/rangSlider/ion.rangeSlider.css" rel="stylesheet">  <!--Themes Jquery Bar Rating-->
    <link href="__ADMIN_CSS__/lib/rangSlider/ion.rangeSlider.skinFlat.css" rel="stylesheet">  <!--Themes Jquery Bar Rating-->
    <link href="__ADMIN_OTHER__/fontAwesome/css/fontawesome-all.min.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/lib/themify-icons.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/lib/mmc-chat.css" rel="stylesheet" />
    <link href="__ADMIN_CSS__/lib/sidebar.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/lib/bootstrap.min.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/lib/nixon.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/style.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/upload/bootstrap.min.css" rel="stylesheet">
    <link href="__ADMIN_CSS__/upload/bootstrap-fileinput.css" rel="stylesheet">
</head>

<body>
{include file="public/menu"}
<!-- /# sidebar -->
{include file="public/header"}
<div class="content-wrap">
    <div class="main">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-8 p-0">
                    <div class="page-header">
                        <div class="page-title">
                            <h1></h1>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4 p-0">
                    <div class="page-header">
                        <div class="page-title">
                            <ol class="breadcrumb text-right">
                                <li><a href="#">精选酒店</a></li>
                                <li class="active">酒店详情</li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>

            <div class="main-content" style="">
                <div class="row">
                    <form action="{:url('admin/Selected/selectedInfo')}" enctype="multipart/form-data" method="post">
                        <input type="hidden" name="id" value="{$rs.id}">
                        <div class="col-lg-12">
                            <div class="card alert">
                                <div class="card-body">
                                    <div class="basic-elements">
                                        <div class="row">
                                            <div class="col-lg-6">
                                                <div class="form-group">
                                                    <label>酒店名称</label>
                                                    <input type="text" class="form-control" name="title" value="{$rs.title}">
                                                </div>
                                                <div class="form-group">
                                                    <label>地址</label>
                                                    <textarea class="form-control" rows="3" name="detail" placeholder="Text input">{$rs.detail}</textarea>
                                                </div>
                                                <div class="form-group">
                                                    <label>最小人数</label>
                                                    <input class="form-control" type="text" name="number_min" value="{$rs.number_min}">
                                                </div>
                                                <div class="form-group">
                                                    <label>最大人数</label>
                                                    <input class="form-control" type="text" name="number_max" value="{$rs.number_max}">
                                                </div>
                                                <div class="form-group">
                                                    <label>最小面积</label>
                                                    <input class="form-control" type="text" name="area_min" value="{$rs.area_min}">
                                                </div>
                                                <div class="form-group">
                                                    <label>最大面积</label>
                                                    <input class="form-control" type="text" name="area_max" value="{$rs.area_max}">
                                                </div>
                                                <div class="form-group">
                                                    <label>客房数量</label>
                                                    <input class="form-control" type="text" name="guest" value="{$rs.guest}">
                                                </div>
                                                <div class="form-group">
                                                    <label>宴会厅数量</label>
                                                    <input class="form-control" type="text" name="banquet" value="{$rs.banquet}">
                                                </div>
                                                <div class="form-group">
                                                    <label>特色（多个用空格隔开）</label>
                                                    <input class="form-control" type="text" name="tese" value="{$rs.tese}">
                                                </div>
                                                <div class="form-group">
                                                    <label>排序（倒序）</label>
                                                    <input class="form-control" type="text" name="list_sort" value="{$rs.list_sort}">
                                                </div>
                                                <div class="form-group">
                                                    <label>首页展示位置（倒序，0：为不展示）</label>
                                                    <input class="form-control" type="text" name="index_sort" value="{$rs.index_sort}">
                                                </div>
                                                <div class="form-group">
                                                    <label>经纬度（<a target="_blank" href="https://lbs.amap.com/console/show/picker">点击：高德地图查询</a>）</label>
                                                    <input class="form-control" type="text" name="location" value="{$rs.location}">
                                                </div>
                                            </div>
                                            <div class="col-lg-6">
                                                <div class="form-group">
                                                    <label>封面图</label>
                                                    <div class="card alert">
                                                        <div class="card-body">
                                                            <img src="{$rs.image}" id="cover" class="img-rounded img-responsive" alt="Cinque Terre" style="width: 300px;">
                                                        </div>
                                                    </div>
                                                    <input class="form-control" type="text" id="imgSrc" name="image" value="{$rs.image}">
                                                </div>
                                                <div class="form-group">
                                                    <label>视频封面组（逗号隔开）</label>
                                                    <textarea class="form-control" rows="3" name="vo_image" placeholder="Text input">{$rs.vo_image}</textarea>
                                                </div>
                                                <div class="form-group">
                                                    <label>视频组（逗号隔开）</label>
                                                    <textarea class="form-control" rows="3" name="vo_vedio" placeholder="Text input">{$rs.vo_vedio}</textarea>
                                                </div>
                                                <div class="form-group">
                                                    <label>轮播图（逗号隔开）</label>
                                                    <textarea class="form-control" rows="3" name="vo_photo" placeholder="Text input">{$rs.vo_photo}</textarea>
                                                </div>
                                                <div class="form-group">
                                                    <label>城市</label>
                                                    <select class="form-control" name="city_id">
                                                        <option value="{$rs.city_id}">{$rs.city_id}</option>
                                                        {volist name='citysList' id='vo'}
                                                        <option value="{$vo.id}">{$vo.id}：{$vo.name}</option>
                                                        {/volist}
                                                    </select>
                                                </div>
                                                <div class="form-group">
                                                    <label>城区</label>
                                                    <select class="form-control" name="region">
                                                        <option value="{$rs.region}">{$rs.region}</option>
                                                        {volist name='regionList' id='vo'}
                                                        <option value="{$vo.id}">{$vo.id}：{$vo.name}</option>
                                                        {/volist}
                                                    </select>
                                                </div>
                                                <div class="form-group">
                                                    <label>商业区</label>
                                                    <select class="form-control" name="business">
                                                        <option value="{$rs.business}">{$rs.business}</option>
                                                        {volist name='businessList' id='vo'}
                                                        <option value="{$vo.id}">{$vo.id}：{$vo.name}</option>
                                                        {/volist}
                                                    </select>
                                                </div>
                                                <div class="form-group">
                                                    <label>地铁</label>
                                                    <select class="form-control" name="subway">
                                                        <option value="{$rs.subway}">{$rs.subway}</option>
                                                        {volist name='subwayList' id='vo'}
                                                        <option value="{$vo.id}">{$vo.id}：{$vo.name}</option>
                                                        {/volist}
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div><!-- /# column -->
                        <button type="submit" class="btn btn-primary btn-block m-b-10">修改</button>
                    </form>
                </div><!-- /# row -->
            </div>
        </div><!-- /# container-fluid -->
    </div><!-- /# main -->
</div><!-- /# content wrap -->

<script src="__ADMIN_JS__/lib/jquery.min.js"></script><!-- jquery vendor -->
<script src="__ADMIN_JS__/lib/jquery.nanoscroller.min.js"></script><!-- nano scroller -->
<script src="__ADMIN_JS__/lib/sidebar.js"></script><!-- sidebar -->
<script src="__ADMIN_JS__/lib/bootstrap.min.js"></script><!-- bootstrap -->
<script src="__ADMIN_JS__/lib/mmc-common.js"></script>
<script src="__ADMIN_JS__/lib/mmc-chat.js"></script>
<script src="__ADMIN_JS__/upload/bootstrap-fileinput.js"></script>
<script src="__ADMIN_JS__/scripts.js"></script>

<script>
    $("#imgSrc").blur(function(){
        var img = $("#imgSrc").val();
        $("#cover").attr('src',img);
    });
</script>

</body>

</html>
